package com.ethink.warehouse.api.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 仓库分仓 更新请求对象
 *
 * @author default
 * @date 2022-11-01
 */
@Data
public class SubWarehouseUpdateRequest {

    @Schema(description ="主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    @Schema(description ="分仓名称")
    @NotNull(message = "分仓名称不能为空")
    private String subWarehouseName;

    @Schema(description ="主仓账册ID")
    @NotNull(message = "主仓账册ID不能为空")
    private Long warehouseBookId;

    @Schema(description ="枚举 仓库性质:1-境外中转仓(t1)|2-国内保税仓(t2)|3-平台寄售仓(t3)|4-境外虚拟仓(t4)|5-平台保税仓(t5)|6-跨境办公室仓(t6)")
    @NotNull(message = "仓库性质不能为空")
    private Integer subWarehouseType;

    @Schema(description ="所属货主编码")
    private String owner;

    @Schema(description ="所属货主名称")
    private String ownerName;

    @Schema(description ="备注信息")
    private String remark;


}
